package com.ttxz.sample.view

import android.content.Context
import android.content.Intent
import android.media.MediaRouter
import android.net.Uri
import android.os.Bundle
import android.provider.Settings
import android.view.Display
import android.view.LayoutInflater
import android.view.View
import android.view.WindowManager
import com.ttxz.common.base.view.BaseActivity
import com.ttxz.common.base.viewmodel.EmptyViewModel
import com.ttxz.sample.R
import com.ttxz.sample.databinding.ActivitySettingsBinding
import com.ttxz.sample.databinding.ViewDoubleScreenBinding
import com.ttxz.sample.utils.SecondDisplayUtil
import com.ttxz.sample.view.widget.VolumeSettingDialog

class SettingsActivity : BaseActivity<ActivitySettingsBinding, EmptyViewModel>() {

    override fun initCustomData() {
        super.initCustomData()
        viewBinding?.tvVolumeSetting?.setOnClickListener {
            VolumeSettingDialog(this).show()
        }
        viewBinding?.tvDoubleScreenTest?.setOnClickListener {
            SecondDisplayUtil.showSecondDisplay(this)
        }
        viewBinding?.tvDoubleScreenTestHint?.setOnClickListener {
            SecondDisplayUtil.hintSecondDisplay()
        }
        viewBinding?.tvDoubleScreenTest2?.setOnClickListener {
            SecondDisplayUtil.showSecondDisplay2(this)
        }
        viewBinding?.tvDoubleScreenTestHint2?.setOnClickListener {
            SecondDisplayUtil.hintSecondDisplay2()
        }

    }
}